WRITE BYTE TO FILE

This command will write a single byte to the specified file.

  Syntax
WRITE BYTE TO FILE Filename, Position, ByteValue
  Parameters
Filename
String
The file name stiring
Position
Integer
The position is specified in bytes from the beginning of the filedata
ByteValue
Integer
The value to write

  Returns

This command does not return a value.

  Description

The position is specified in bytes from the beginning of the filedata. You can use this to modify a file at the byte level.

  Example Code
cls
write byte to file "data.dat,0,42"
print "value "+str(read byte to file "data.dat,0")
do
loop
end
  See also

FILE Commands Menu
Index